home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 53
/
Volume 53 - JOGO DISK .iso
/
Games
/
thefarmer.swf
/
scripts
/
DefineButton2_462
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2007-10-01
|
2KB
|
81 lines
on(release){
if(_root.lahan4s11 == 0 and _root.kursor._currentframe == 3)
{
_root.lahan4s11 = 1;
_root.energi -= 1;
}
if(_root.lahan4p11 == 0 and _root.kursor._currentframe == 4)
{
_root.lahan4p11 = _root.lahan4p11 + 1;
_root.energi -= 1;
_root.pupuk--;
}
if(_root.kursor._currentframe == 5)
{
_root.lahan4u11 = 0;
_root.energi -= 1;
_root.pestisida--;
}
if(_root.kursor._currentframe == 6)
{
_root.lahan4t11 = 12;
_root.energi -= 1;
}
if(_root.lahan4t11 == 5 and _root.kursor._currentframe == 2)
{
if(_root.tanamanlahan4 == 1 or _root.tanamanlahan4 == 2 or _root.tanamanlahan4 == 3 or _root.tanamanlahan4 == 8)
{
_root.lahan4t11 = 12;
}
if(_root.tanamanlahan4 == 4)
{
_root.lahan4panen11 = _root.lahan4panen11 + 1;
if(_root.lahan4panen11 > 3)
{
_root.lahan4t11 = 6;
}
else
{
_root.lahan4t11 = 4;
}
}
if(_root.tanamanlahan4 == 5)
{
_root.lahan4panen11 = _root.lahan4panen11 + 1;
if(_root.lahan4panen11 > 4)
{
_root.lahan4t11 = 6;
}
else
{
_root.lahan4t11 = 4;
}
}
if(_root.tanamanlahan4 == 6)
{
_root.lahan4panen11 = _root.lahan4panen11 + 1;
if(_root.lahan4panen11 > 3)
{
_root.lahan4t11 = 6;
}
else
{
_root.lahan4t11 = 4;
}
}
if(_root.tanamanlahan4 == 7)
{
_root.lahan4panen11 = _root.lahan4panen11 + 1;
if(_root.lahan4panen11 > 5)
{
_root.lahan4t11 = 6;
}
else
{
_root.lahan4t11 = 4;
}
}
_root.kursor.gotoAndStop(9 + _root.tanamanlahan4);
}
}